﻿using UnityEngine;
using System.Collections;

public class CEventItem : MonoBehaviour {

	public UILabel m_Title;
	public UILabel m_Date;
	public int 	   m_nID;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnClick()
	{
		StartCoroutine(JsonDataRead.Instance.IncViewCount ());
		JsonDataRead.Instance.curEventID = m_nID;
		CSceneManager.Instance.LoadScene ("InfoScene", "EventScene");
	}
}